﻿namespace RecipeModule
{
    public class DishConfig
    {
        public static Dish[] Dishes = new[]
        {
            new Dish(1, DishType.Carbon, "法棍", 50, 120, 5), 
            new Dish(2, DishType.Carbon, "红腰豆", 50, 49, 5), 
            new Dish(3, DishType.Carbon, "藜麦", 50, 184, 5), 
            new Dish(4, DishType.Carbon, "土豆泥", 50, 56, 4), 
            new Dish(5, DishType.Carbon, "鹰嘴豆", 50, 80, 4), 
            new Dish(6, DishType.Carbon, "玉米", 50, 56, 4), 
            new Dish(7, DishType.Carbon, "紫薯", 50, 35, 3), 
            new Dish(8, DishType.Vc, "橙子", 50, 24, 4), 
            new Dish(9, DishType.Vc, "哈密瓜", 50, 17, 4), 
            new Dish(10, DishType.Vc, "芒果", 50, 18, 5), 
            new Dish(11, DishType.Vc, "猕猴桃", 50, 31, 10), 
            new Dish(12, DishType.Vc, "圣女果", 50, 11, 3), 
            new Dish(13, DishType.Vc, "西瓜", 50, 13, 3), 
            new Dish(14, DishType.Vc, "香蕉", 50, 47, 3), 
            new Dish(15, DishType.Fiber, "混合生菜", 50, 34, 4), 
            new Dish(16, DishType.Fiber, "蘑菇", 50, 12, 7), 
            new Dish(17, DishType.Fiber, "青瓜", 50, 10, 3), 
            new Dish(18, DishType.Fiber, "山药", 50, 29, 4), 
            new Dish(19, DishType.Fiber, "生菜", 50, 29, 3), 
            new Dish(20, DishType.Fiber, "西红柿", 50, 10, 3), 
            new Dish(21, DishType.Fiber, "西兰花", 50, 18, 3), 
            new Dish(22, DishType.LowLipoprotein, "黑椒牛肉", 50, 49, 12), 
            new Dish(23, DishType.LowLipoprotein, "鸡蛋", 50, 76, 3), 
            new Dish(24, DishType.LowLipoprotein, "鸡胸肉", 50, 67, 6), 
            new Dish(25, DishType.LowLipoprotein, "培根", 50, 91, 6), 
            new Dish(26, DishType.LowLipoprotein, "蟹柳", 50, 59, 6), 
            new Dish(27, DishType.LowLipoprotein, "鸭胸肉", 50, 45, 6), 
            new Dish(28, DishType.LowLipoprotein, "芝士", 50, 164, 6)
        };

        public static Dish GetDish(int id)
        {
            for (var i = 0; i < Dishes.Length; i++)
            {
                Dish dish = Dishes[i];
                if (dish.id == id)
                {
                    return dish;
                }
            }

            return null;
        }
    }
}